package com.ruoyi.supplier.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品规格组记录业务对象
 *
 * @author ruoyi
 * @date 2023-09-18
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ProductSpecBo extends BaseEntity {

    /**
     * 规格组id
     */
    @NotNull(message = "规格组id不能为空", groups = { EditGroup.class })
    private Integer specId;

    /**
     * 规格组名称
     */
    @NotBlank(message = "规格组名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String specName;

    /**
     * 商户id
     */
    @NotNull(message = "商户id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer merchantId;

    /**
     * 供货商id
     */
    @NotNull(message = "供货商id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer supplierId;


}
